<?php

defined( 'PDNS_CORE' ) or die( "Unauthorized" );

class User{
	
	/*
		standard singleton pattern
	*/
	private static $instance;
	
	public static function getInstance(){
		if (!isset(self::$instance)) {
			$c = __CLASS__;
			self::$instance = new $c();
		}
		return self::$instance;
	}

	function __construct(){
		$this->name = Request::getWord( 'PHP_AUTH_USER', '', $_SERVER );
		$this->pass = Request::getPassword( 'PHP_AUTH_PW', '', $_SERVER );
	}

}
